package com.sun.customer.controller;

import com.sun.customer.service.TestServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by yingsy on 2021-01-22.
 */
@RestController
public class TestController {

    @Autowired
    private TestServiceImpl testService;

    @GetMapping("/test")
    public Boolean test(@RequestParam("num") Integer num) throws InterruptedException {
        return testService.test(num);
    }
}
